package com.glorysoft.xztpda.entity

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.glorysoft.xztpda.BR
import java.io.Serializable

/**
 * FileName: EdcDataEntity
 * Author: XJH
 * Date: 2022/5/16 16:16
 * Description:
 * History:
 */
class EdcDataEntity : Serializable {

    var LOTID: String = ""
    var PARTNAME: String = ""
    var STEPNAME: String = ""
    var EDCSETLIST: List<EdcDataEDCSETLIST> = arrayListOf()
    var LOTBINDATALIST: List<LotBinData> = arrayListOf()
    var MAINQTY: Int = 0
    var ENDLOTQTY: Int = 0
}
class LotBinData : Serializable,BaseObservable(){
    var LOTID : String = ""
    var EQUIPMENTID : String = ""
    var STEPNAME : String = ""
    var EDCSETNAME : String = ""
    var BINNAME : String = ""
    var BINDESC : String = ""
    var MAINQTY : Int = 0
    var check : String = ""
    @get:Bindable
    var sel : Boolean = false
        set(value) {
            field = value
            notifyChange()
        }
}

class EdcDataEDCSETLIST : Serializable {
    var COMPONENTUNITID: String = ""
    var EDCSETNAME: String = ""
    var EDCSETDESCRIPTION: String = ""
    var EDCTYPE: String = ""
    var EDCSETBINLINELIST: List<EdcDataEDCSETLISTEDCSETBINLINELIST> = arrayListOf()
}

class EdcDataEDCSETLISTEDCSETBINLINELIST : Serializable, BaseObservable() {

    var NAME: String = ""
    var DESCRIPTION: String = ""
    var SPECTYPE: String = ""
    var USL: String = ""
    var LSL: String = ""
    var BINTYPE: String = ""
    var BINACTION: String = ""
    var VALUE: String = ""

    @get:Bindable
    var check: String = "0.0%"
        set(value) {
            field = value
            notifyPropertyChanged(BR.check)
        }
    var MAINQTY: Int = 0
}